class SeckillHolderProductsVo {

  SeckillHolderProductsData? data;

  SeckillHolderProductsVo({this.data});

  SeckillHolderProductsVo.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new SeckillHolderProductsData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class SeckillHolderProductsData {
  int? id;
  int? userId;
  int? productId;
  String? title;
  String? image;
  String? price;
  int? status;
  String? statusStr;
  Gift? gift;

  SeckillHolderProductsData(
      {this.id,
      this.userId,
      this.productId,
      this.title,
      this.image,
      this.price,
      this.status,
      this.statusStr,
      this.gift});

  SeckillHolderProductsData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['user_id'];
    productId = json['product_id'];
    title = json['title'];
    image = json['image'];
    price = json['price'];
    status = json['status'];
    statusStr = json['status_str'];
    gift = json['gift'] != null ? new Gift.fromJson(json['gift']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.userId;
    data['product_id'] = this.productId;
    data['title'] = this.title;
    data['image'] = this.image;
    data['price'] = this.price;
    data['status'] = this.status;
    data['status_str'] = this.statusStr;
    if (this.gift != null) {
      data['gift'] = this.gift!.toJson();
    }
    return data;
  }
}

class Gift {
  String? title;
  int? quantity;

  Gift({this.title, this.quantity});

  Gift.fromJson(Map<String, dynamic> json) {
    title = json['title'];
    quantity = json['quantity'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['title'] = this.title;
    data['quantity'] = this.quantity;
    return data;
  }
}
